<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            height: 100px;
            width: 100px;
            background-color: purple;
        }
    </style>
    <script src="jquery.min.js"></script>
</head>
<body>
    <div class="box"></div>
    <script>
        /*事件被触发，就会有事件对象产生
        element.on(events,[selector],function(event){})*/
        $(function(){
            $("div").on("click",function(e){
                console.log(e);
            })
        })
        //阻止冒泡event.stopPropagation（）
    </script>
</body>
</html>